package com.neusoft.databus.agent.pool.opc;

import org.apache.commons.pool2.KeyedPooledObjectFactory;
import org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig;
import org.openscada.opc.lib.da.Server;
import org.springframework.stereotype.Component;

import com.neusoft.databus.common.connection.OpcConnection;
import com.neusoft.databus.common.pool.AbstractPool;

/**
 * OPC连接池
 *
 * @author naxiang
 */
@Component
public class OpcPool extends AbstractPool<OpcConnection, Server> {

    @Override
    public String getName() {
        return "OPC连接池";
    }

    @SuppressWarnings("rawtypes")
    public OpcPool(KeyedPooledObjectFactory<OpcConnection, Server> factory,
            GenericKeyedObjectPoolConfig opcPoolConfig) {
        super(factory, opcPoolConfig);
    }
}
